Optimal. Leaf size=33 \[ \frac{2 \tanh ^{-1}\left (\frac{2 b^2 x-\sqrt{b^2-4 a b^3}}{b}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0357354, antiderivative size = 58, normalized size of antiderivative = 1.76, number of steps used = 3, number of rules used = 2, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {616, 31} \[ \frac{\log \left (-\sqrt{b^2-4 a b^3}+2 b^2 x+b\right )}{b}-\frac{\log \left (\sqrt{b^2-4 a b^3}-2 b^2 x+b\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 616
Rule 31
Rubi steps
\begin{align*} \int \frac{1}{a b+\sqrt{b^2-4 a b^3} x-b^2 x^2} \, dx &=-\left (b \int \frac{1}{\frac{1}{2} \left (-b+\sqrt{b^2-4 a b^3}\right )-b^2 x} \, dx\right )+b \int \frac{1}{\frac{1}{2} \left (b+\sqrt{b^2-4 a b^3}\right )-b^2 x} \, dx\\ &=-\frac{\log \left (b+\sqrt{b^2-4 a b^3}-2 b^2 x\right )}{b}+\frac{\log \left (b-\sqrt{b^2-4 a b^3}+2 b^2 x\right )}{b}\\ \end{align*}
Mathematica [A] time = 0.0324871, size = 34, normalized size = 1.03 \[ \frac{2 \tanh ^{-1}\left (\frac{2 b^2 x-\sqrt{-b^2 (4 a b-1)}}{b}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.178, size = 31, normalized size = 0.9 \begin{align*} -2\,{\frac{1}{b}{\it Artanh} \left ({\frac{-2\,{b}^{2}x+\sqrt{-{b}^{2} \left ( 4\,ab-1 \right ) }}{b}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.14659, size = 88, normalized size = 2.67 \begin{align*} -\frac{\log \left (\frac{2 \, b^{2} x - \sqrt{-4 \, a b^{3} + b^{2}} - \sqrt{b^{2}}}{2 \, b^{2} x - \sqrt{-4 \, a b^{3} + b^{2}} + \sqrt{b^{2}}}\right )}{\sqrt{b^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.70566, size = 128, normalized size = 3.88 \begin{align*} \frac{\log \left (\frac{2 \, b^{2} x + b - \sqrt{-4 \, a b^{3} + b^{2}}}{b}\right ) - \log \left (\frac{2 \, b^{2} x - b - \sqrt{-4 \, a b^{3} + b^{2}}}{b}\right )}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.570447, size = 56, normalized size = 1.7 \begin{align*} - \frac{\log{\left (x - \frac{1}{2 b} - \frac{\sqrt{- 4 a b^{3} + b^{2}}}{2 b^{2}} \right )} - \log{\left (x + \frac{1}{2 b} - \frac{\sqrt{- 4 a b^{3} + b^{2}}}{2 b^{2}} \right )}}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26446, size = 76, normalized size = 2.3 \begin{align*} -\frac{\log \left (\frac{{\left | 2 \, b^{2} x - \sqrt{-4 \, a b + 1}{\left | b \right |} -{\left | b \right |} \right |}}{{\left | 2 \, b^{2} x - \sqrt{-4 \, a b + 1}{\left | b \right |} +{\left | b \right |} \right |}}\right )}{{\left | b \right |}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]